﻿using FluentNHibernate.Mapping;
using AdventureWorks.Domain;
namespace AdventureWorks.DataAccess.Mappings
{
    public class CustomerMapping : SubclassMap<Customer>
    {
        public CustomerMapping()
        {
            Schema("Sales");
            Table("Customer");
            Map(x => x.AccountNumber);
            KeyColumn("PersonId");
        }
    }
}
